package com.project.bean;

import java.time.LocalDate;

public class ProductBean {
    private int id;
    private String name;
    private int price;
    /**生产日期*/
    private LocalDate startDate;
    private String factory;

    public ProductBean() {
    }

    public ProductBean(int id, String name, int price, LocalDate startDate, String factory) {
        this.id = id;
        this.name = name;
        this.price = price;
        this.startDate = startDate;
        this.factory = factory;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public LocalDate getStartDate() {
        return startDate;
    }

    public void setStartDate(LocalDate startDate) {
        this.startDate = startDate;
    }

    public String getFactory() {
        return factory;
    }

    public void setFactory(String factory) {
        this.factory = factory;
    }

    @Override
    public String toString() {
        return "ProductBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", price=" + price +
                ", startDate=" + startDate +
                ", factory='" + factory + '\'' +
                "}\n";
    }
}
